package com.xncoding.pos.service.thread.original;

/**
 * 多线程
 *
 * @Author guoyb
 * @Date 2022/7/28  15:49
 */
public class MyThreadFromThread extends Thread {
    @Override
    public void run() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("当前线程名称:" + this.getName() + ", 执行线程名称:" + Thread.currentThread().getName() + "-hello");

    }
}
